"""hospitaloa URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import handler404, handler500
from django.contrib import admin
from django.urls import path, include
from personnel import views

urlpatterns = [
    path('attendance.html', views.attendance.as_view()),  # 部门考勤统计
    path('AttendanceStatistics.html', views.AttendanceStatistics.as_view()),  # 考勤统计
    path('user_list.html', views.user_list.as_view()),        # 人员列表
    path('new_user.html', views.new_user.as_view()),
    path('stuff_shift_arrangement', views.SchedulingListView.as_view()),  # 排班列表
    path('SchedulingView', views.SchedulingView.as_view()),                   # 添加排班人员
    path("SchedulingDeleteView", views.SchedulingDeleteView.as_view()),
    path("roster_setting", views.roster_setting.as_view()),         # 排班设定
    path("system_scheduling.html", views.system_scheduling.as_view()),  # 系统排班列表
    path("ManualShiftArrangement", views.ManualShiftArrangement.as_view()),  # 手动排班
    path("issue_statement.html", views.issue_statement.as_view()),  # 议题报表
    path("VehicleReport.html", views.VehicleReport.as_view()),  # 用车报表
    path("issue_detail", views.IssueDetail.as_view()),
    path("TimeSetting.html", views.TimeSetting.as_view()),          # 上班时间设定
    path('upload_excel', views.UploadExcel.as_view()),      # 上传排版excel表格
    path('change_scheduling', views.ChangeScheduling.as_view()),        # 修改排班数据
    path('query_summary', views.QuerySummary.as_view()),  # 查询考勤汇总数据
    path('month_summary', views.month_summary.as_view()),  # 本部门考勤月度汇总数据查询
    path('contract_countersigning.html', views.ContractCountersigning.as_view()),  # 本部门考勤月度汇总数据查询
    path('SearchDispatchData', views.search_dispatch_data.as_view()),               # 查询劳务派遣数据
    path('freeze_personnel', views.freeze_personnel.as_view()),                 # 人员的冻结与解冻
    path('batch_operation', views.batch_operation.as_view()),                   # 人员的批量冻结与解冻
    path('VehicleReportDetail.html', views.VehicleReportDetail.as_view()),          # 用车报表详情
    path('TravelReport.html', views.TravelReport.as_view()),                    # 差旅报表
    path('click_on_pre_scheduling', views.ClickOnPreScheduling.as_view()),              # 点击预排班
    path('CheckInStatistics.html', views.CheckInStatisticsView.as_view()),              # 打卡统计
    path('CheckInDetail', views.check_in_detail.as_view()),                      # 打卡详情
    path('DepartmentStatistics', views.department_statistics.as_view()),                # 部门考勤统计
    path('AllCheckInDetail', views.all_check_in_detail.as_view()),                # 个人所有打卡记录
]
